package ss;

import java.util.Set;

import com.opensymphony.xwork2.ActionSupport;

public class ChatAction extends ActionSupport {
private static final long serialVersionUID = 8445871212065L ; 

private ChatService chatService;
private Set < String > userNames;

public void setChatService(ChatService chatService) {
this .chatService = chatService;
} 

public Set < String > getUserNames() {
return userNames;
} 

@Override
public String execute() {
userNames = chatService.getUserNames();
return SUCCESS;
} 

} 